package com.art.sunflower.service;

import com.art.sunflower.exception.NullStudentException;
import com.art.sunflower.util.MyPageInfo;

import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Map;

public interface StudentService {

    MyPageInfo getList(Integer pageSize, Integer pageNo) throws NullStudentException;

    void add(String username, String password, String phone, String name, String sex, Integer year, String parentName, Integer classroomId)
            throws NoSuchAlgorithmException;

    void update(Integer id, String username, String password, String phone, String name, String sex, Integer year, String parentName, Integer classroomId)
            throws NoSuchAlgorithmException, NullStudentException;

    void delete(Integer id) throws NullStudentException;

    Map<String, Object> getById(Integer id) throws NullStudentException;

    List<Integer> getTeacherClassroomStudent(Integer userId);

    List<Integer> getTeacherClassesStudent(Integer userId);

}
